package com.niuwa.p2p.dao.fund;

import com.niuwa.p2p.dao.MyBatisDao;
import com.niuwa.p2p.entity.fund.ChlAcctRule;
@MyBatisDao
public interface ChlAcctRuleDao {
	
    int deleteByPrimaryKey(Long id);

    int insert(ChlAcctRule record);

    ChlAcctRule selectByPrimaryKey(Long id);
    
    /**
     * 根据合作机构编号查找渠道账户规则信息
     * @param partnerNo
     * @return
     */
    ChlAcctRule selectChlRuleByPartnerNo(String partnerNo);

    int updateByPrimaryKey(ChlAcctRule record);
    
    /**
     * 根据渠道账户编码获取规则
     * @param openOrgCode
     * @return
     */
   ChlAcctRule  getChlOrgRule(String openOrgCode);

}